Skip to content

feat: add Fusion Tree #631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

FamALouiz
Copy link

References to Issue

Resolves #630

Brief description of what is created

  • Implemented a Fusion Tree
  • Created test cases for insertion, deletion, and string representation.

@@ -1887,3 +1889,160 @@ def get_sum(self, left_index, right_index):
self.get_prefix_sum(left_index - 1)
else:
return self.get_prefix_sum(right_index)

class FusionTree(object):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should inherit the abstract class. See how other trees are implemented.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@FamALouiz FamALouiz requested a review from czgdp1807 March 19, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Create fusion trees
2 participants